package com.yunlankeji.stemcells.fragemt;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.yunlankeji.ganxibaozhijia.R;
import com.yunlankeji.stemcells.adapter.Fragment_personal_space_fansAdapter;
import com.yunlankeji.stemcells.adapter.Fragment_personal_space_followAdapter;
import com.yunlankeji.stemcells.model.request.Personal_space;
import com.yunlankeji.stemcells.model.request.Personal_space_fans;

import java.util.ArrayList;
import java.util.List;


public class fragment_mine_personal_space_fans extends Fragment {
    RecyclerView recyclerView;
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_mine_personal_space_fans,container,false);
        recyclerView = view.findViewById(R.id.personal_space_fans_rv);

        List<Personal_space_fans> personal_space_fansList= new ArrayList<>();
        Personal_space_fans personal_space_fans1 = new Personal_space_fans("lulingjie","关注了你   2020.2.1","已关注",R.mipmap.chose);
        personal_space_fansList.add(personal_space_fans1);

        LinearLayoutManager layoutManager = new LinearLayoutManager(this.getActivity());
        recyclerView.setLayoutManager(layoutManager);
        Fragment_personal_space_fansAdapter fragment_personal_space_fansAdapter=new Fragment_personal_space_fansAdapter(personal_space_fansList);
        recyclerView.setAdapter(fragment_personal_space_fansAdapter);
        return view;
    }
}
